<?php
$page = $_GET['page'];

if($page=='library')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'libprofileview.php';
    header("Location: http://$host$uri/$extra");
}

if($page=='catalog')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'catalog.php';
    header("Location: http://$host$uri/$extra");
}

if($page=='client')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'cliententry.php';
    header("Location: http://$host$uri/$extra");
}

if($page=='admin')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'adminlist.php';
    header("Location: http://$host$uri/$extra");
}
if($page=='search')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'search.php';
    header("Location: http://$host$uri/$extra");
}
if($page=='news')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'newsentry.php';
    header("Location: http://$host$uri/$extra");
}
?>
